* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #0a0a1a;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    width: 100%;
    max-width: 800px;
    height: 100vh;
    max-height: 600px;
    position: relative;
}

.menu {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
    padding: 20px;
    text-align: center;
}

h1, h2 {
    margin-bottom: 30px;
    color: #00e5ff;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}

button {
    background: linear-gradient(135deg, #00e5ff 0%, #0077ff 100%);
    border: none;
    color: #0a0a1a;
    padding: 12px 24px;
    margin: 10px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.8);
}

.menu-options {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.game-area {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
    overflow: hidden;
}

.score-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    font-size: 18px;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.7);
}

#game-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 26, 0.9);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    z-index: 20;
}

.game-over h2 {
    margin-bottom: 20px;
    color: #00e5ff;
}

.game-over p {
    margin-bottom: 15px;
    font-size: 18px;
}

#settings-menu, #leaderboard-menu {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
    padding: 20px;
    text-align: center;
}

.setting-item {
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    max-width: 400px;
}

.leaderboard-container {
    width: 80%;
    max-width: 500px;
    margin: 20px 0;
    overflow-y: auto;
    max-height: 300px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    color: #00e5ff;
}

tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

tr:hover {
    background-color: rgba(0, 229, 255, 0.1);
}